package com.hzzc.core.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import java.io.Serializable;

@javax.persistence.Table(name = "sso_user")
@com.gitee.sunchenbin.mybatis.actable.annotation.Table(name = "sso_user")
public class SSOUser extends AutoIncrementEntity implements Serializable {

    @Unique
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String name;

    @Column(name = "head", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String head;

    @Unique
    @Column(name = "account", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String account;

    @Column(name = "pwd", type = MySqlTypeConstant.VARCHAR, length = 100)
    private String pwd;


    @Column(name = "black", type = MySqlTypeConstant.BIT)
    private Boolean black = false;

    public Boolean getBlack() {
        return black == null || black;
    }

    public SSOUser setBlack(Boolean black) {
        this.black = black;
        return this;
    }

    public String getName() {
        return name;
    }

    public SSOUser setName(String name) {
        this.name = name;
        return this;
    }

    public String getHead() {
        return head;
    }

    public SSOUser setHead(String head) {
        this.head = head;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public SSOUser setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getPwd() {
        return pwd;
    }

    public SSOUser setPwd(String pwd) {
        this.pwd = pwd;
        return this;
    }


}
